<?php
namespace Imi\HotUpdate\Monitor;

abstract class BaseMonitor implements IMonitor
{
	/**
	 * 包含的路径
	 * @var array
	 */
	protected $includePaths;

	/**
	 * 排除的路径
	 * @var array
	 */
	protected $excludePaths;

	/**
	 * 构造方法
	 * @param array $includePaths 包含的路径
	 * @param array $excludePaths 排除的路径
	 */
	public function __construct(array $includePaths, array $excludePaths = [])
	{
		$this->includePaths = $includePaths;
		$this->excludePaths = $excludePaths;
		$this->init();
	}

	/**
	 * 初始化
	 * @return void
	 */
	abstract protected function init();
}